package com.example.mybatis.service;

import com.example.mybatis.form.UserForm;
import com.example.mybatis.model.ServiceResponse;
import com.example.mybatis.model.UserTO;

import java.io.File;
import java.util.List;
import com.example.mybatis.model.PageInfo;

public interface IUserService {
    ServiceResponse<UserTO> queryUserInfoByAccount(String userAccount);

    ServiceResponse<String> addUserTO(UserTO userTO) throws Exception;

    ServiceResponse<String> updateUserTO(UserTO userTO)throws Exception;

    ServiceResponse<String> batchAddUserTO(List<UserTO> userTOs)throws Exception;

    ServiceResponse<PageInfo> selectAllUser(int pageNum,int pageSize);

    ServiceResponse<String> batchUpdateUserInfo(List<UserTO> userItems)throws Exception;

    ServiceResponse<String> deleteUserInfo(String userAccount)throws Exception;

    ServiceResponse<String> batchDeleteUserInfo(List<String> userAccounts)throws Exception;

    ServiceResponse<UserTO> userLogin(UserForm userForm);

    ServiceResponse<List<UserTO>> searchUsers(UserForm userForm)throws Exception;


}
